final class cls_aa
        implements inf_m {

    int a;
    int b;
    int c;
    int d;
    private int h;
    private int i;
    int e;
    int f;
    private long j;
    long g;

    cls_aa(int k, int l) {
        a = c = k << 8;
        b = d = l << 8;
    }

    final cls_aa a() {
        return new cls_aa((a) >> 8, (b) >> 8);
    }

    final void a(int k, int l, int i1) {
        c = k << 8;
        d = l << 8;
        e = i1;
        if (i1 == 0) {
            a = c;
            b = d;
        }
    }

    final void b(int k, int l, int i1) {
        c = (k) << 8;
        d = (l) << 8;
        f = i1;
        if (f == 0) {
            a = c;
            b = d;
        }
    }

    final void b() {
        if (f > 0) {
            int k = (c - a) / f;
            int l = (d - b) / f;
            if (k != 0 || l != 0) {
                a += k;
                b += l;
            } else {
                a = c;
                b = d;
                f = 0;
            }
            int i1 = Math.abs(((c) >> 8) - ((a) >> 8));
            int i2 = Math.abs(((d) >> 8) - ((b) >> 8));
            if (i1 <= 1 && i2 <= 1)
                f >>= 1;
        }
    }

    final void c() {
        if (e > 0) {
            if (--e > 0) {
                a += (c - a) / e;
                b += (d - b) / e;
                return;
            }
            a = c;
            b = d;
        }
    }

    final void a(int k, int l, long l1, long l2) {
        c = (k) << 8;
        d = (l) << 8;
        if (l1 > 0L) {
            h = (int) ((long) (c - a) / l1);
            i = (int) ((long) (d - b) / l1);
        } else {
            a = c;
            b = d;
        }
        j = l2;
        g = l2 + l1;
    }

    final void a(cls_aa aa1, long l) {
        if (g != l) {
            long l1 = g - l;
            c = aa1.a;
            d = aa1.b;
            h = (int) ((long) (c - a) / l1);
            i = (int) ((long) (d - b) / l1);
        }
    }

    final void a(long l) {
        int k = (int) (l - j);
        if (l < g) {
            a += h * k;
            b += i * k;
        } else {
            a = c;
            b = d;
        }
        j = l;
    }
}